import {Injectable} from '@angular/core';
import {BaseHttpService} from '../base-http.service';
import {Observable} from 'rxjs';

export interface MsdsPoison {
  cancerEffect: string;
  fastEffect: string;
  skinEtchEffect: string;
  skinBreatheEffect: string;
  breatheEffect: string;
  msdsEntprId?: number;
  id?: number;
}


@Injectable({
  providedIn: 'root'
})
export class MsdsPoisonHttpService {

  constructor(public http: BaseHttpService) {
  }


  /*新增msdsPoison 信息*/
  public addMsdsPoison(param: MsdsPoison): Observable<number> {
    return this.http.post('/msdsPoison', param, {needSuccessInfo: true});
  }

  /*修改msdsPoison信息*/
  public editMsdsPoison(param: MsdsPoison): Observable<void> {
    return this.http.put('/msdsPoison', param, {needSuccessInfo: true});
  }

  /*查询msdsPoison详情*/
  public getMsdsPoisonDetail(msdsEntprId: number): Observable<MsdsPoison> {
    return this.http.get('/msdsPoison/' + msdsEntprId);
  }


}
